
public class KeboardConsumer extends Thread{
	protected SynchronizedBuffer keyboards = new SynchronizedBuffer();
	
	public KeboardConsumer(SynchronizedBuffer key) {
		keyboards=key;
	}
	  protected void consume() {
		    KeboardCandidate key = null;
		    int len =0;
		    key = keyboards.remove();
		    len = keyboards.size();
		    
		    System.out.println("Consuming keboardLayout " + key.getId());
		    System.out.println("List size now " + len);
		  }

	  public void run(){
		  while(true){
			  this.consume();
		  }
	  }

}
